	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_d3d9max2d_d3d9max2d
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_max2d_DrawImage
	extrn	_brl_max2d_LoadAnimImage
	public	___bb_types_ttile
	public	__bb_TTileMap_Create
	public	__bb_TTileMap_Delete
	public	__bb_TTileMap_Draw
	public	__bb_TTileMap_New
	public	_bb_TTileMap
	public	_bb_tilemapList
	section	"code" code
___bb_types_ttile:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_60],0
	je	_61
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_61:
	mov	dword [_60],1
	push	ebp
	push	_56
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_d3d9max2d_d3d9max2d
	push	_bb_TTileMap
	call	_bbObjectRegisterType
	add	esp,4
	push	_54
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,0
	jmp	_33
_33:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TTileMap_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_63
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TTileMap
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],edx
	mov	ebx,0
	jmp	_36
_36:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TTileMap_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_39:
	mov	eax,dword [eax+24]
	dec	dword [eax+4]
	jnz	_68
	push	eax
	call	_bbGCFree
	add	esp,4
_68:
	mov	eax,0
	jmp	_66
_66:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TTileMap_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp+24]
	mov	dword [ebp-20],eax
	mov	dword [ebp-24],_bbNullObject
	push	ebp
	push	_99
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_69
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_bb_TTileMap
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-24],eax
	push	_71
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_73
	call	_brl_blitz_NullObjectError
_73:
	push	6
	push	16
	push	0
	push	dword [ebp-12]
	push	dword [ebp-8]
	push	dword [ebp-4]
	call	_brl_max2d_LoadAnimImage
	add	esp,24
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_78
	push	eax
	call	_bbGCFree
	add	esp,4
_78:
	mov	dword [ebx+24],esi
	push	_79
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_81
	call	_brl_blitz_NullObjectError
_81:
	mov	eax,dword [ebp-8]
	mov	dword [ebx+8],eax
	push	_83
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_85
	call	_brl_blitz_NullObjectError
_85:
	mov	eax,dword [ebp-12]
	mov	dword [ebx+12],eax
	push	_87
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_89
	call	_brl_blitz_NullObjectError
_89:
	mov	eax,dword [ebp-16]
	mov	dword [ebx+16],eax
	push	_91
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_93
	call	_brl_blitz_NullObjectError
_93:
	mov	eax,dword [ebp-20]
	mov	dword [ebx+20],eax
	push	_95
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [_bb_tilemapList]
	cmp	ebx,_bbNullObject
	jne	_97
	call	_brl_blitz_NullObjectError
_97:
	push	dword [ebp-24]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_98
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	jmp	_46
_46:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TTileMap_Draw:
	push	ebp
	mov	ebp,esp
	sub	esp,28
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	dword [ebp-20],0
	mov	dword [ebp-24],0
	push	ebp
	push	_114
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_103
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_105
	call	_brl_blitz_NullObjectError
_105:
	mov	eax,dword [ebp-12]
	imul	eax,dword [ebx+8]
	mov	dword [ebp-20],eax
	push	_107
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_109
	call	_brl_blitz_NullObjectError
_109:
	mov	eax,dword [ebp-16]
	imul	eax,dword [ebx+12]
	mov	dword [ebp-24],eax
	push	_111
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_113
	call	_brl_blitz_NullObjectError
_113:
	push	dword [ebp-8]
	mov	eax,dword [ebp-24]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-20]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	sub	esp,4
	fstp	dword [esp]
	push	dword [ebx+24]
	call	_brl_max2d_DrawImage
	add	esp,16
	mov	ebx,0
	jmp	_52
_52:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_60:
	dd	0
_57:
	db	"TTile",0
_58:
	db	"tilemapList",0
_59:
	db	":brl.linkedlist.TList",0
	align	4
_bb_tilemapList:
	dd	_bbNullObject
	align	4
_56:
	dd	1
	dd	_57
	dd	4
	dd	_58
	dd	_59
	dd	_bb_tilemapList
	dd	0
_18:
	db	"TTileMap",0
_19:
	db	"TileWidth",0
_20:
	db	"i",0
_21:
	db	"TileHeight",0
_22:
	db	"FieldWidth",0
_23:
	db	"FieldHeight",0
_24:
	db	"img",0
_25:
	db	":brl.max2d.TImage",0
_26:
	db	"New",0
_27:
	db	"()i",0
_28:
	db	"Delete",0
_29:
	db	"Create",0
_30:
	db	"($,i,i,i,i):TTileMap",0
_31:
	db	"Draw",0
_32:
	db	"(i,i,i)i",0
	align	4
_17:
	dd	2
	dd	_18
	dd	3
	dd	_19
	dd	_20
	dd	8
	dd	3
	dd	_21
	dd	_20
	dd	12
	dd	3
	dd	_22
	dd	_20
	dd	16
	dd	3
	dd	_23
	dd	_20
	dd	20
	dd	3
	dd	_24
	dd	_25
	dd	24
	dd	6
	dd	_26
	dd	_27
	dd	16
	dd	6
	dd	_28
	dd	_27
	dd	20
	dd	7
	dd	_29
	dd	_30
	dd	48
	dd	6
	dd	_31
	dd	_32
	dd	52
	dd	0
	align	4
_bb_TTileMap:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_17
	dd	28
	dd	__bb_TTileMap_New
	dd	__bb_TTileMap_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_TTileMap_Create
	dd	__bb_TTileMap_Draw
_55:
	db	"C:/Programming/Projects/Phlogosis/GraphicsEngine_Phlogosis/Types/TTile.bmx",0
	align	4
_54:
	dd	_55
	dd	1
	dd	1
_64:
	db	"Self",0
_65:
	db	":TTileMap",0
	align	4
_63:
	dd	1
	dd	_26
	dd	2
	dd	_64
	dd	_65
	dd	-4
	dd	0
_100:
	db	"image",0
_101:
	db	"$",0
_102:
	db	"t",0
	align	4
_99:
	dd	1
	dd	_29
	dd	2
	dd	_100
	dd	_101
	dd	-4
	dd	2
	dd	_19
	dd	_20
	dd	-8
	dd	2
	dd	_21
	dd	_20
	dd	-12
	dd	2
	dd	_22
	dd	_20
	dd	-16
	dd	2
	dd	_23
	dd	_20
	dd	-20
	dd	2
	dd	_102
	dd	_65
	dd	-24
	dd	0
	align	4
_69:
	dd	_55
	dd	13
	dd	3
	align	4
_71:
	dd	_55
	dd	14
	dd	3
	align	4
_79:
	dd	_55
	dd	16
	dd	3
	align	4
_83:
	dd	_55
	dd	17
	dd	3
	align	4
_87:
	dd	_55
	dd	18
	dd	3
	align	4
_91:
	dd	_55
	dd	19
	dd	3
	align	4
_95:
	dd	_55
	dd	21
	dd	3
	align	4
_98:
	dd	_55
	dd	23
	dd	3
_115:
	db	"Frame",0
_116:
	db	"xpos",0
_117:
	db	"ypos",0
_118:
	db	"realX",0
_119:
	db	"realY",0
	align	4
_114:
	dd	1
	dd	_31
	dd	2
	dd	_64
	dd	_65
	dd	-4
	dd	2
	dd	_115
	dd	_20
	dd	-8
	dd	2
	dd	_116
	dd	_20
	dd	-12
	dd	2
	dd	_117
	dd	_20
	dd	-16
	dd	2
	dd	_118
	dd	_20
	dd	-20
	dd	2
	dd	_119
	dd	_20
	dd	-24
	dd	0
	align	4
_103:
	dd	_55
	dd	27
	dd	3
	align	4
_107:
	dd	_55
	dd	28
	dd	3
	align	4
_111:
	dd	_55
	dd	30
	dd	3
